import request from "@/utils/request";

/**
 * 附件查询
 * get /admin/attachments
 */
export const getAttachments = (params?:any) => {
  return request({
    url: `/admin/attachments`,
    method: "get",
    params
  });
};

/**
 * 附件删除
 * delete /admin/attachments/{id}
 */
export const deleteAttachment = (id: number) => {
  return request({
    url: `/admin/attachments/${id}`,
    method: "delete",
  });
};
